$(function(){
	var headPath = localStorage.getItem("head_image");
	console.log("headPath:" + headPath);
	
	$("#imagehead2").attr("src", headPath); 
	
	$("#createtp").click(function(){
		location.href = "http://yx.fxtourong.com/V1/Goods/createtopic_view";
	});
	$("#createzj").click(function(){
		location.href = "http://yx.fxtourong.com/V1/Goods/create_zj.html";
	});
	
	$.ajax({
			type: "POST",
			url: "http://yx.fxtourong.com/V1/Store/intoTheStore",
			data: {
				token : localStorage.getItem("token")
			},
			dataType: "json",
			success: function(data) {
				console.log(data);
				var code = data.code;
				console.log(code);
				if(code == "1") {
					localStorage.setItem("store_url", data.data.url);
					localStorage.setItem("store_id", data.data.store_id);
				}
			}
		});
});